home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
026a
/
tl_form.zip
/
TL_FORM.GEN
< prev
Wrap
Text File
|
1990-08-19
|
23KB
|
364 lines
Format (.fmt) File Template with POPUP field validation
-------------------------------------------------------
Version 1.1.19
Ashton-Tate (c) 1987, 1988, 1989, 1990
Written by Kirk J. Nason & Bill Ramos
Modified by Tony Lima 08/18/90 to allow REQUIRED clause with
VALID. To add a REQUIRED, insert the following before
your other logical conditions:
'REQ'='REQ' .AND. <rest of logical condition here>
Note that this works because 'REQ'='REQ' always returns
a logical .T. The template looks for this string,
writes the word REQUIRED to the FMT file, then resets
the logical condition to only keep everything beyond the
blank space after the .AND.
WARNING: BE SURE YOU USE EXACTLY THE SYNTAX SHOWN HERE,
INCLUDING ALL BLANK SPACES.
This template will support POPUPs for VALID clause field validations and
context sensitive help for each field.
Example: In "ACCEPT value when" under "Edit options" enter,
"POPUP" = "vendor->vendor_id ORDER vendor_id REQ SHADOW"
--------------------------------------------------------
this will activate a popup if the data entered is invalid for
that field and will also make the field REQUIRED.
Explanation of the POPUP string follows:
POPUP Indicates that a popup will be used for this field.
vendor->vendor_id Indicates the .DBF to open and FIELD to use as validation.
ORDER vendor_id Indicates which INDEX TAG to SEEK in.
REQ Indicates the FIELD requires data (can't be empty).
Leave REQ out if the field is NOT required. OPTIONAL!
SHADOW Use shadowing effect on popups OPTIONAL!
NOTE: The POPUP string must be entered with the quotes as in the example.
--------------------------------------------------------------------------------
Explanation of the Context Sensitive Help file follows:
If you want to create your own help file, here is the structure that is required.
Structure for Help Database (.dbf):
<first 6 chars. of the format file name>_H.dbf
Field Field Name Type Width Dec Tag
-------------------------------------------------
1 FLD_NAME Character 10 Yes Field name to lookup on F1
2 FLD_HEADNG Character 25 No Heading to show user on window
3 FLD_HELP Memo 10 No Help text to show user
-------------------------------------------------
Total 46
ε¡Ω